package etcMycat.mapper;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import etcMycat.entity.ETCToSZ;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CarInOutMapper extends BaseMapper<ETCToSZ> {


    @Select("select count(SFZRKMC) as 'inCount' ,SFZRKMC from etc group by SFZRKMC order by inCount desc ")
    List<ETCToSZ> countIn();
    @Select("select count(SFZCKMC) as 'outCount' ,SFZCKMC from etc group by SFZCKMC order by outCount desc ")
    List<ETCToSZ> countout();
}
